package com.brush.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.brush.common.core.domain.entity.SysDictData;
import com.brush.common.core.domain.resp.SysDictDataQueryResp;
import com.brush.system.domain.req.sysdictdata.SysDictDataAddReq;
import com.brush.system.domain.req.sysdictdata.SysDictDataEditReq;

import java.util.List;

/**
* @author 18494
* @description 针对表【sys_dict_data(字典数据表)】的数据库操作Service
* @createDate 2024-08-19 10:28:03
*/
public interface SysDictDataService extends IService<SysDictData> {

    /**
     * 查询所有可用字典数据
     * @return
     */
    List<SysDictDataQueryResp> findEnableAll();


    Integer countDictDataByType(String dictType);

    SysDictDataQueryResp selectDictDataById(Long dictCode);

    boolean insertDictData(SysDictDataAddReq req);

    boolean updateDictData(SysDictDataEditReq req);

    void deleteDictDataByIds(Long[] dictCodes);
}
